Checks for a valid MS-DOS file name or path expression.
Syntax
ValidPath(cName)
cName
Specifies the path or file name to be checked.
Return Type
Logical
Remarks
ValidPath( ) verifies that a file name or path name is syntactically legal; it doesn't check for the existence of the specified file or path. The function isn't foolproof and can sometimes interpret a file as having a valid name when the file name is actually invalid. However, ValidPath( ) won't reject a valid name.
Not supported in file systems that support spaces in path names.